#ifndef MESSAGE_H
#define MESSAGE_H

#include <QString>
#include "src/json.hpp"

class Message {
public:

    Message();
    ~Message();

public:
    QString content = QString::fromStdString(stdContent);
    QString sender = QString::fromStdString(stdSender);
    std::string receiver;
    int type = 0;
    long long int timestamp = 0;
    std::string stdSender;
    std::string stdContent;
    NLOHMANN_DEFINE_TYPE_INTRUSIVE(Message, stdContent, stdSender, receiver, type, timestamp);
};

#endif // MESSAGE_H
